package org.dtrd.modules.patient.entity.bean.report;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author qr
 * @date 2022/4/1 16:46
 */
@ApiModel("报告头")
@Data
@AllArgsConstructor
public class ReportTableHeader {

    @ApiModelProperty("表头值")
    private String tableName;

    @ApiModelProperty("指定的属性值")
    private String key;

    @ApiModelProperty("指定的属性值")
    private String dataIndex;

    private ScopedSlots scopedSlots;

    public ReportTableHeader(String tableName, String key) {
        this.tableName = tableName;
        this.key = key;
        this.dataIndex = key;
        this.scopedSlots = new ScopedSlots(key);
    }

    @Data
    @AllArgsConstructor
    public static class ScopedSlots {
        private String customRender;
    }

}
